#include <stdio.h>
#include <string.h>

class test
{
public:
	test(int x)
	{
		m_pi_int = new int;
		*m_pi_int = x;
	}
	~test()
	{
		if(NULL != m_pi_int)
		{
			delete m_pi_int;
		}
	}
	int a;
	int b;
	int *m_pi_int;
	int xxxx()
	{
		delete this;
		return 0;
	}
	int hellow()
	{
		printf("hellow [%d]\n", *m_pi_int);
	}

};

int main(int argc, char* argv[])
{
	test* a= new test(1);
	a->hellow();
	a->xxxx();
	a->hellow();
	printf("seccess\n");
	return 0;
}
